package cn.fz.relaxation.job.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class TaskDemo {
    @XxlJob("myTask")
    public ReturnT<String> myFirstTask(String param) {
        log.info("myFirstTask:{}",param);
        System.out.println("myFirstTask="+param);
        return ReturnT.SUCCESS;
    }
}
